﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace MCP.Data.CF_Entities
{
	public class Category
	{
		[Key]
		[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		public int ID { get; set; }
        
		[Required]
		[MaxLength(100)]
		public string CategoryName { get; set; }

		public virtual ICollection<Item> Items { get; set; }
	}
}